package test.design.singleton;

public class InnerclassSingleton {
	
	static class Builder {
		private static InnerclassSingleton instance = new InnerclassSingleton();
	}
	
	public static InnerclassSingleton getInstance() {
		return Builder.instance;
	}
	
	public static void main(String[] args) {
		System.out.println(InnerclassSingleton.getInstance().getClass());
		System.out.println(EnumSingleton.INSTANCE.getClass());
	}

}
